package cn.com.cetccst.appstore.ui.activity.viewmodel;

import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;

import cn.com.cetccst.appstore.database.AppStoreRepository;

public class AppStoreViewModel extends ViewModel {
    public static final int TYPE_APP_LIST = 0, TYPE_APP_CATEGORY = 1, TYPE_UPGRADE = 2;

    public MutableLiveData<Boolean> naviAppSelected = new MutableLiveData<>();

    public MutableLiveData<Integer> pageType = new MutableLiveData<>(TYPE_APP_LIST);

    public LiveData<Integer> storeBadgeFromDB = AppStoreRepository.getInstance().loadCountNeedUpgradeApps();

}
